package com.nwpu.server.learning.service.impl;

import com.nwpu.server.learning.entity.TaskEntity;
import com.nwpu.server.learning.service.FileService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.nwpu.server.common.response.*;

import com.nwpu.server.learning.dao.FileDao;
import com.nwpu.server.learning.entity.FileEntity;


@Service("fileInfoService")
public class FileServiceImpl extends ServiceImpl<FileDao, FileEntity> implements FileService {

//    @Autowired
//    private OssFeignService couponFeignService;

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<FileEntity> page = this.page(
                new Query<FileEntity>().getPage(params),
                new QueryWrapper<FileEntity>()
        );

        return new PageUtils(page);
    }

    @Override
    public List<TaskEntity> listWithTree(String userId) {
        return null;
    }

    @Override
    public List<String> selectByIds(String[] fileIds) {
        return null;
    }

}